Skip to content

Conversation

@nbdd0121
Copy link
Contributor

This adds an utility for UART (consoles) Broadcaster which can be used to disseminate received data to multiple readers and each readers be able to read full history.

This can be useful when there're multiple users of UART that need to handle inputs simultaneously. The opentitantool's logfile option has been refactored to do this so it no longer needs to be part of UartConsole.

Previously `set_break` needs to be on `ConsoleDevice` because `UartConsole`
expects it to be there, so it can turn stdin breaks into console breaks.
This feature is now moved to `opentitantool console` (which was the only place
this feature was used), so the `set_break` doesn't need to be on `ConsoleDevice`
anymore (and also this capability is only available on `Uart` impls anyway).

Signed-off-by: Gary Guo <[email protected]>
This can allow multiple concurrent readers to all receive all data.

Signed-off-by: Gary Guo <[email protected]>
Reduce nesting level by 1.

Signed-off-by: Gary Guo <[email protected]>
@nbdd0121 nbdd0121 requested a review from jwnrt November 21, 2025 17:06
@nbdd0121 nbdd0121 requested a review from a team as a code owner November 21, 2025 17:06
We always use `stdout` if it's not `None`, so just use a boolean quiet flag
instead.

Signed-off-by: Gary Guo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant